package com.cangxuan.backend.entity;

import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * Author: 陈青石
 * 挂单实体
 */
@Data
public class Registration implements Serializable {

    private int id;
    private int goodsId;
    private int userId;
    private String nickname;
    private int count;
    private int price;
    private int state;
    private int buyerId;
    private LocalDateTime createTime;

    public Registration() {
    }

    public Registration(int id, int goodsId, int userId, int count, int price, int state) {
        this.id = id;
        this.goodsId = goodsId;
        this.userId = userId;
        this.count = count;
        this.price = price;
        this.state = state;
    }

    public Registration(int id, int goodsId, int userId, String nickname, int count, int price, int state) {
        this.id = id;
        this.goodsId = goodsId;
        this.userId = userId;
        this.nickname = nickname;
        this.count = count;
        this.price = price;
        this.state = state;
    }

    public Registration(int id, int goodsId, int userId, String nickname, int count, int price, int state, int buyerId) {
        this.id = id;
        this.goodsId = goodsId;
        this.userId = userId;
        this.nickname = nickname;
        this.count = count;
        this.price = price;
        this.state = state;
        this.buyerId = buyerId;
    }
}
